package com.hksj.sglm.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hksj.sglm.query.SpecialGasPressureHistoryQuery;
import com.hksj.sglm.query.SpecialGasPressureQuery;
import com.hksj.sglm.vo.SpecialGasPressureHistoryVO;
import com.hksj.sglm.vo.SpecialGasPressureVO;
import com.hksj.tdengine.taos.annatation.DS_TAOS;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SpecialGasPressureMapper {

    // 查询分页
    List<SpecialGasPressureVO> querySpecialGasPressureByPage(@Param("page") IPage<SpecialGasPressureVO> page,@Param("query") SpecialGasPressureQuery query);

    // 查询历史记录
    @DS_TAOS
    List<SpecialGasPressureHistoryVO> querySpecialGasPressureHistory(@Param("query")SpecialGasPressureHistoryQuery query, @Param("tableName") String tableName);

    @DS_TAOS
    Long querySpecialGasHistoryCount(@Param("query")SpecialGasPressureHistoryQuery query, @Param("tableName") String tableName);
}
